import createAjax from '@/utils/request.js'

export function addAdmin(params) {
  return createAjax({
    url: '/management/add_admin',
    method: 'post',
    data: params
  })
}

//获取token
export function getToken(params) {
  return createAjax({
    url: '/login/getToken',
    method: 'post',
    data: params
  })
}

//登陆
export function login(params) {
  return createAjax({
    url: '/login',
    method: 'post',
    data: params
  })
}